import * as CONSTANTS from '@/constants/index'
import request from '@/api/request'

export default {
  /**
   * 获取用户中所有的宝宝列表数据
   * @param {String,Number} userId [必须]
   */
  [CONSTANTS.API_GET_USERALLBABIES]: (params) => {
    return request({
      url: `${CONSTANTS.API_BASEPREFIX}/v4/user/baby/query`,
      method: 'GET',
      params,
    })
  },
}
